/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  DbVersion.java                                      
 *  File Contents Outline : 日志版本数据对象
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */
package storage.dbobject;

import java.util.ArrayList;
import java.util.UUID;

public class DbVersion {
       public static final String cl_key = "KEY";
    private String rowKey;
    public static final String cl_versionNum = "versionNum";
    private String versionNum;
    public static final String cl_validStartTime= "validStartTime";
    private String validStartTime;
    public static final String cl_validEndTime = "validEndTime";
    private String validEndTime;
    public static final String cl_updateTime = "updateTime";
    private String updateTime;
     public static final String cl_logHead = "logHead";
    private ArrayList<String> logHeadList;
public DbVersion(String rowKey,String versionNum,String validStartTime,String validEndTime,String updateTime,ArrayList<String> logHeadList){
     this.rowKey=rowKey;
     this.versionNum=versionNum;
     this.validStartTime=validStartTime;
      this.validEndTime=validEndTime;
     this.updateTime=updateTime;
     this.logHeadList=logHeadList;
}
public DbVersion(String versionNum,String validStartTime,String validEndTime,String updateTime,ArrayList<String> logHeadList){
   this.rowKey = UUID.randomUUID().toString();
     this.versionNum=versionNum;
     this.validStartTime=validStartTime;
      this.validEndTime=validEndTime;
     this.updateTime=updateTime;
     this.logHeadList=logHeadList;
}
    /**
     * @return the rowKey
     */
    public String getRowKey() {
        return rowKey;
    }

    /**
     * @param rowKey the rowKey to set
     */
    public void setRowKey(String rowKey) {
        this.rowKey = rowKey;
    }


    /**
     * @return the validStartTime
     */
    public String getValidStartTime() {
        return validStartTime;
    }

    /**
     * @param validStartTime the validStartTime to set
     */
    public void setValidStartTime(String validStartTime) {
        this.validStartTime = validStartTime;
    }

    /**
     * @return the validEndTime
     */
    public String getValidEndTime() {
        return validEndTime;
    }

    /**
     * @param validEndTime the validEndTime to set
     */
    public void setValidEndTime(String validEndTime) {
        this.validEndTime = validEndTime;
    }

    /**
     * @return the updateTime
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime the updateTime to set
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @return the logHeadList
     */
    public ArrayList<String> getLogHeadList() {
        return logHeadList;
    }

    /**
     * @param logHeadList the logHeadList to set
     */
    public void setLogHeadList(ArrayList<String> logHeadList) {
        this.logHeadList = logHeadList;
    }

    /**
     * @return the versionNum
     */
    public String getVersionNum() {
        return versionNum;
    }

    /**
     * @param versionNum the versionNum to set
     */
    public void setVersionNum(String versionNum) {
        this.versionNum = versionNum;
    }
}
